package com.devframe.sysbase.model.base;

import java.io.Serializable;

import com.devframe.sysbase.model.TSysExceptionInfo;


/**
 * This is an object that contains data related to the T_SYS_EXCEPTION_INFO table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="T_SYS_EXCEPTION_INFO"
 */

public abstract class BaseTSysExceptionInfo  implements Serializable {

	public static String REF = "TSysExceptionInfo";
	public static String PROP_BASE_INFO = "baseInfo";
	public static String PROP_RESOLVE = "resolve";
	public static String PROP_EXCEPTION_CLASS_NAME = "exceptionClassName";


	// constructors
	public BaseTSysExceptionInfo () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseTSysExceptionInfo (java.lang.String exceptionClassName) {
		this.setExceptionClassName(exceptionClassName);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.String exceptionClassName;

	// fields
	private java.lang.String baseInfo;
	private java.lang.String resolve;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="uuid.hex"
     *  column="EXCEPTION_CLASS_NAME"
     */
	public java.lang.String getExceptionClassName () {
		return exceptionClassName;
	}

	/**
	 * Set the unique identifier of this class
	 * @param exceptionClassName the new ID
	 */
	public void setExceptionClassName (java.lang.String exceptionClassName) {
		this.exceptionClassName = exceptionClassName;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: BASE_INFO
	 */
	public java.lang.String getBaseInfo () {
		return baseInfo;
	}

	/**
	 * Set the value related to the column: BASE_INFO
	 * @param baseInfo the BASE_INFO value
	 */
	public void setBaseInfo (java.lang.String baseInfo) {
		this.baseInfo = baseInfo;
	}



	/**
	 * Return the value associated with the column: RESOLVE
	 */
	public java.lang.String getResolve () {
		return resolve;
	}

	/**
	 * Set the value related to the column: RESOLVE
	 * @param resolve the RESOLVE value
	 */
	public void setResolve (java.lang.String resolve) {
		this.resolve = resolve;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof  TSysExceptionInfo)) return false;
		else {
			TSysExceptionInfo tSysExceptionInfo = (TSysExceptionInfo) obj;
			if (null == this.getExceptionClassName() || null == tSysExceptionInfo.getExceptionClassName()) return false;
			else return (this.getExceptionClassName().equals(tSysExceptionInfo.getExceptionClassName()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getExceptionClassName()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getExceptionClassName().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}